using System;
using System.Collections.Generic;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;

namespace Game1
{
    public class StartScreen : Screen
    {
        Texture2D fundo;
        protected override void LoadContent()
        {
            AudioManager.playOneMusic("menu");
            GuiManager.Singleton.removeAllEntries();
            //GuiManager.Singleton.AddMenuEntry("Title", "f", 200, 250, 3.0f, Color.White, 35, 25);
            GuiManager.Singleton.AddMenuEntry("Title", "Sci Full dEX",200, 250, 3.0f, Color.Gray, 5, 25);
            GuiManager.Singleton.AddMenuEntry("Press", "Press enter", 200, 330, 1.0f, Color.Gray, 35, 25);
            fundo = Base.Content.Load<Texture2D>("crucibleplanet1280");

        }

        public override void Update(GameTime gameTime)
        {

            if (Input.IsKeyPressed(Keys.Escape) || Input.IsKeyPressed(Keys.Enter) || Input.isMouseClicked( MouseButton.LeftButton) )
            {
                Base.currentScreen = new MenuScreen();
            }
            if (Input.IsKeyPressed(Keys.F11) )
            {
                Base.getGraphicsDevice().ToggleFullScreen();
            }
        }

        public override void Draw(GameTime gameTime)
        {
            graphics.GraphicsDevice.Clear(Color.White);

            spriteBatch.Begin(SpriteBlendMode.None, SpriteSortMode.Immediate, SaveStateMode.None);
            spriteBatch.Draw(fundo, new Rectangle(0, 0, 1280, 1024), Color.White);
            spriteBatch.End();
        }
    }
}
